package zongbao.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zongbao.domain.Book;
import zongbao.domain.User;
import zongbao.mapper.UserMapper;
import zongbao.service.UserService;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findUserById(Integer id) {
        return userMapper.findUserById(id);
    }



    @Override
    public User login(User user) {
        return userMapper.login(user);
    }

    @Override
    public List<User> allUser() {
        return userMapper.allUser();
    }

    @Override
    public int del(Integer id) {
        return userMapper.del(id);
    }

    @Override
    public int updateuser(User user) {
        return userMapper.updateuser(user);
    }

    @Override
    public void adduser(User user) {
        userMapper.adduser(user);
    }

    @Override
    public int updatepwd(User user) {
        return userMapper.updatepwd(user);
    }

    @Override
    public User zhaohui(User user) {
        return userMapper.zhaohui(user);
    }

    @Override
    public List<User> college(String college) {
        return userMapper.college(college);
    }

    @Override
    public List<User> Sax(String sax) {
        return userMapper.Sax(sax);
    }

    @Override
    public List<User> Banji(String banji) {
        return userMapper.Banji(banji);
    }

    @Override
    public List<User> Sousuo(Map<Object,Object> map) {
        return userMapper.Sousuo(map);
    }

    @Override
    public int jieshu(User user) {
        return userMapper.jieshu(user);
    }
}
